Here is an example of my random.choice implementation in Python.
available_cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'TeamLeader', 'Rohit', 'Kesharwani', 'Alld'] random_computer_card = random.choice(available_cards) print random_computer_card
Just wondering what the Java equivalent would be for this piece of code. Obviously, I haven't included the import statement in the sample.
Barbara Jones
04-Nov-2014